﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReporterEngine;

namespace ReporterSystem
{
    public class ReportTemplate
    {
        public string TemplateFilePath;
        public string ResultFilePath;

        public DateTime? ReportedDate;

        public Guid ReportTemplateID;

        public bool DoReport;
        public string TemplateFileName;
        public string ResultFileName;

        public bool AutoOpenResult;

        public List<TemplateParameter> Parameters = new List<TemplateParameter>();

        public ReportSettingsArgs ReportSettings = new ReportSettingsArgs();

        public List<MessageLogArgs> Messages = new List<MessageLogArgs>();

        public static ReportTemplate New
        {
            get { return new ReportTemplate { ReportTemplateID = Guid.NewGuid() }; }
        }
    }
}
